$(function() {

	$("a[name='agreeA']").click(function() {
		var flag = confirm("是否确认通过审核");
		console.log(flag);
		var h_id = $(this).attr("value");
		var data = {
			"action" : 1,
			"h_id" : h_id
		};
		if (flag) {
			$.ajax({
				type : "post",
				url : "/tenement/modifyHReviewStatus.action",
				data : JSON.stringify(data),
				contentType : "application/json;charset=utf-8",
				success : function(msg) {
					console.log(msg);
					location.reload();
				}
			})
		}
	})
	$("a[name='disagreeA']").click(function() {
		var flag = confirm("是否确认不通过审核");
		console.log(flag);
		var h_id = $(this).attr("value");
		var data = {
			"action" : -1,
			"h_id" : h_id
		};
		if (flag) {
			$.ajax({
				type : "post",
				url : "/tenement/modifyHReviewStatus.action",
				data : JSON.stringify(data),
				contentType : "application/json;charset=utf-8",
				success : function(msg) {
					console.log(msg);
					location.reload();
				}
			})
		}
	})

})